import * as actionType from './actionType';

export default (state = {}, action) => {
    switch (action.type) {
        case actionType.ALLMENU: {
            return { ...state, getAllMenu: action.getAllMenu }
        }
        case actionType.ALIPAY:
            return {
                ...state, qrcode: action.qrcode,
                out_trade_no: action.out_trade_no,

            }
        case actionType.QUERTSTATUS:
            return {
                ...state, queryStatus: action.queryStatus,
            }
        default:
            return state;
    }
}